package restaurant.service.impl;

import java.sql.SQLException;
import java.util.List;

import restaurant.dao.BoardDao;
import restaurant.dao.impl.BoardDaoImpl;
import restaurant.pojo.Board;
import restaurant.service.BoardService;
import restaurant.utils.BaseDao;

public class BoardServiceImpl extends BaseDao implements BoardService {
	private BoardDao dao = new BoardDaoImpl();
	@Override
	public int addBoard(String name) throws SQLException {

		return dao.addBoard(name);
	}

	@Override
	public int delBoard(String id) throws SQLException {

		return dao.delBoard(id);
	}

	@Override
	public List<Board> showBoard() throws SQLException {
		
		return dao.showBoard();
	}

	@Override
	public int update(String id, String state) throws SQLException {
		
		return dao.update(id, state);
	}

	@Override
	public List<Board> find(String param) throws SQLException {
		
		return dao.find(param);
	}

}
